package com.jk.smartelderlycare.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jk.smartelderlycare.dto.SysSign;
import com.jk.smartelderlycare.dto.SysSlider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface SysSliderMapper extends BaseMapper<SysSlider> {
    /**
     * @description: \状态修改
     * @param: [sysSlider]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 17:23
     */
    @Update("update sys_slider set status = #{status} where slider_id =#{sliderId}")
    void updataStutas(SysSlider sysSlider);
    /**
     * @description: 后端分页查询
     * @param: [sysSign, page]
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.jk.smartelderlycare.dto.SysSlider>
     * @author hhk
     * @date: 2024/11/19 17:24
     */
    IPage<SysSlider> findSysSliderPaginationList(@Param(value = "sysSlider") SysSlider sysSlider, Page<SysSlider> page);
}